seat: Add a sanity check
authorMatthias Clasen <mclasen@redhat.com>
Wed, 1 May 2019 20:46:02 +0000 (20:46 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 1 May 2019 20:46:02 +0000 (20:46 +0000)
commit6f0b47681b877c0f2ea6e635ff600af30f99d24a
treead07e6dfc8389d703291de9e13234aafabace2cf
parentd53981fdbb2f996f421355b1bb3c94327195b3bb
seat: Add a sanity check

apis that takes multiple display-relative objects
should make sure that they are all from the same
display, or hard-to-track-down badness will happen
later on.

Add such a check for the surface and device arguments
of gdk_seat_grab. This helped in tracking down
critical warnings from combo boxes in the inspector.
gdk/gdkseat.c